package com.colorlight.cloud.complete.entity.po;

import com.colorlight.cloud.complete.entity.enumerate.PowerStatus;
import com.colorlight.cloud.gateway.api.message.constraint.basics.object.Trans;
import com.colorlight.iot.proto.complete.entity.CompleteEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class M2Relay implements Trans<M2Relay, CompleteEntity.M2Relay> {

    /**
     * 继电器的编号，1~3
     */
    private Integer relay;

    /**
     * 继电器的延迟执行时间，单位秒
     */
    private Integer delay;

    /**
     * 要设置的继电器状态，1开，0关
     */
    private PowerStatus status;
}

